.class public Ladapter/OrderAdapter;
.super Landroid/widget/BaseAdapter;
.source "OrderAdapter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Ladapter/OrderAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field private context:Landroid/content/Context;

.field mData:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/BillBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 0
    .param p1, "context"    # Landroid/content/Context;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lbean/BillBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 34
    .local p2, "mData":Ljava/util/List;, "Ljava/util/List<Lbean/BillBean;>;"
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 35
    iput-object p1, p0, Ladapter/OrderAdapter;->context:Landroid/content/Context;

    .line 36
    iput-object p2, p0, Ladapter/OrderAdapter;->mData:Ljava/util/List;

    .line 37
    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Ladapter/OrderAdapter;->mData:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .param p1, "arg0"    # I

    .prologue
    .line 47
    const/4 v0, 0x0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .param p1, "arg0"    # I

    .prologue
    .line 53
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 7
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v6, 0x0

    const/16 v5, 0x8

    .line 58
    const/4 v1, 0x0

    .line 59
    .local v1, "holder":Ladapter/OrderAdapter$ViewHolder;
    if-nez p2, :cond_3

    .line 61
    new-instance v1, Ladapter/OrderAdapter$ViewHolder;

    .end local v1    # "holder":Ladapter/OrderAdapter$ViewHolder;
    invoke-direct {v1, p0}, Ladapter/OrderAdapter$ViewHolder;-><init>(Ladapter/OrderAdapter;)V

    .line 62
    .restart local v1    # "holder":Ladapter/OrderAdapter$ViewHolder;
    iget-object v2, p0, Ladapter/OrderAdapter;->context:Landroid/content/Context;

    invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    const v3, 0x7f030015

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 63
    const v2, 0x7f0700b5

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->code:Landroid/widget/TextView;

    .line 64
    const v2, 0x7f070097

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sdtime:Landroid/widget/TextView;

    .line 65
    const v2, 0x7f0700b7

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->addr:Landroid/widget/TextView;

    .line 66
    const v2, 0x7f0700b8

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->name:Landroid/widget/TextView;

    .line 67
    const v2, 0x7f0700b9

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->phone:Landroid/widget/TextView;

    .line 68
    const v2, 0x7f0700ba

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->num:Landroid/widget/TextView;

    .line 69
    const v2, 0x7f0700bc

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->cost:Landroid/widget/TextView;

    .line 70
    const v2, 0x7f0700bd

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    .line 71
    const v2, 0x7f0700be

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    .line 72
    const v2, 0x7f0700bb

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->fukuan:Landroid/widget/TextView;

    .line 73
    const v2, 0x7f0700bf

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    .line 74
    const v2, 0x7f0700b6

    invoke-virtual {p2, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->warn:Landroid/widget/TextView;

    .line 75
    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 79
    :goto_0
    iget-object v2, p0, Ladapter/OrderAdapter;->mData:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/BillBean;

    .line 80
    .local v0, "bb":Lbean/BillBean;
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->code:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "#"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/BillBean;->getDayCode()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 81
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sdtime:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getSdTime()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 82
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->addr:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getCompanyaddr()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 83
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->name:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getCompanyName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 84
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->phone:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getPhone()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 85
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->num:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\u7b2c"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/BillBean;->getMenuIdNum()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\u6b21\u4e0b\u5355"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->cost:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\uffe5"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Lbean/BillBean;->getOrderPrice()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 87
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->fukuan:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getFukuan()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 89
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->phone:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getPhone()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 90
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->phone:Landroid/widget/TextView;

    new-instance v3, Ladapter/OrderAdapter$1;

    invoke-direct {v3, p0}, Ladapter/OrderAdapter$1;-><init>(Ladapter/OrderAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 100
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->warn:Landroid/widget/TextView;

    invoke-virtual {v0}, Lbean/BillBean;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 101
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->warn:Landroid/widget/TextView;

    new-instance v3, Ladapter/OrderAdapter$2;

    invoke-direct {v3, p0}, Ladapter/OrderAdapter$2;-><init>(Ladapter/OrderAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 111
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 112
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    new-instance v3, Ladapter/OrderAdapter$3;

    invoke-direct {v3, p0}, Ladapter/OrderAdapter$3;-><init>(Ladapter/OrderAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 123
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 124
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    new-instance v3, Ladapter/OrderAdapter$4;

    invoke-direct {v3, p0}, Ladapter/OrderAdapter$4;-><init>(Ladapter/OrderAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 134
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 135
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    new-instance v3, Ladapter/OrderAdapter$5;

    invoke-direct {v3, p0}, Ladapter/OrderAdapter$5;-><init>(Ladapter/OrderAdapter;)V

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 145
    invoke-virtual {v0}, Lbean/BillBean;->getStauts()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 148
    invoke-virtual {v0}, Lbean/BillBean;->getMake()Ljava/lang/String;

    move-result-object v2

    const-string v3, "0"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 151
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 152
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 153
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 155
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->warn:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 157
    :cond_0
    invoke-virtual {v0}, Lbean/BillBean;->getMake()Ljava/lang/String;

    move-result-object v2

    const-string v3, "1"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 159
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 160
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 161
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 162
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->warn:Landroid/widget/TextView;

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setVisibility(I)V

    .line 165
    :cond_1
    invoke-virtual {v0}, Lbean/BillBean;->getMake()Ljava/lang/String;

    move-result-object v2

    const-string v3, "2"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 167
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 168
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 169
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 178
    :cond_2
    :goto_1
    return-object p2

    .line 77
    .end local v0    # "bb":Lbean/BillBean;
    :cond_3
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    .end local v1    # "holder":Ladapter/OrderAdapter$ViewHolder;
    check-cast v1, Ladapter/OrderAdapter$ViewHolder;

    .restart local v1    # "holder":Ladapter/OrderAdapter$ViewHolder;
    goto/16 :goto_0

    .line 174
    .restart local v0    # "bb":Lbean/BillBean;
    :cond_4
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->sure:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 175
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->no:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 176
    iget-object v2, v1, Ladapter/OrderAdapter$ViewHolder;->send:Landroid/widget/TextView;

    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1
.end method
